//
// Created by Administrator on 2019/12/10.
//

#ifndef CPPDEMO_PTHREADLEARN_H
#define CPPDEMO_PTHREADLEARN_H

#include <iostream>
#include <pthread.h>

using namespace std;
//pthread只能传静态函数，不太方便

class PThreadLearn {
public:
    PThreadLearn();

    ~PThreadLearn();
    void start5Thread();
    static pthread_mutex_t mutex;
    static pthread_cond_t condition;
private:
    pthread_t* status;
    static void *runner(void *args);
    static int ThreadCount;
    static int threadSharedV;

};


#endif //CPPDEMO_PTHREADLEARN_H
